<?php get_header(); ?>


<!-- Sidebar -->
<div class="page-sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Blog Sidebar") ) : ?><?php endif; ?>
 
  <?php if (!empty($sid) && function_exists('is_dynamic_sidebar') && is_active_sidebar($sid)){ ?>
    <div id="sidebar">  
      <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar($sid)): ?><?php endif; ?>
    </div>
  <?php } ?>
</div>

<!-- Content Area -->
<div class="page-content">

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>



<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

</div>


<div class="clear"></div>

<?php get_footer(); ?>